Skip to content

web-gen: extract web-gen-ui components crate (split step 2, #8961) - #12918

Merged
dezren39 merged 1 commit into
mainfrom
lane-et/8961-web-gen-ui
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-et/8961-web-gen-ui

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Step 2 of the pkgs/web-gen crate split (#8961; umbrella #8958). Step 1 (#8960, web-gen-core) landed in #12876; the revival gate was discharged by #12369 (stable Leptos 0.8.23 build restored).

What moves: the five components — App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample — move verbatim from pkgs/web-gen/src/main.rs into the new member crate web-gen-ui (crates/web-gen-ui), which depends on web-gen-core. The commented-out historical FormExample block moves with them. The only source edits are pub on the three previously private components (App/TestApp/ProgressBar) so the facade can re-export them.

Facade: the bin keeps main (mount/bootstrap) and one re-export line, pub use web_gen_ui::{App, DetailedFormExample, ProgressBar, RandomMultiplierForm, TestApp}; — no component code remains in the bin crate (0 #[component] in src/main.rs).

Manifests: shared leptos/leptos_router/wasm-bindgen/web-sys versions pinned in [workspace.dependencies] (step-1 pattern); the bin drops the deps only the components used (leptos_router, wasm-bindgen, web-sys, web-gen-core). No dependency version bumps. Cargo.lock diff: +12/−4 (new path-only member).

Verification (laptop worktree off origin/main):

  • cargo test --workspace --offline — all suites ok: web-gen-core 10 passed / 0 failed; ui + bin compile and run 0-test suites; doc-tests ok. No failures anywhere.
  • cargo check --locked --offline — Finished, exit 0.
  • cargo fmt -- --check — exit 0.
  • Warning profile unchanged in substance: the same five pre-existing unused-import warnings (they serve commented-out code), now split across the two crates (ui 2, bin 3); web-gen-core's 2 pre-existing warnings untouched.

Closes #8961.


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Move the five Leptos components (App, TestApp, ProgressBar,
RandomMultiplierForm, DetailedFormExample) verbatim from the bin's
main.rs into the new member crate web-gen-ui, which depends on
web-gen-core. The three previously private components become pub so
the facade bin can re-export the ui surface; the bin keeps only
main (mount/bootstrap) plus the re-export line.

Shared leptos/leptos_router/wasm-bindgen/web-sys versions move to
[workspace.dependencies] (the step-1 pattern); the bin drops the
deps only the components used (leptos_router, wasm-bindgen,
web-sys, web-gen-core). Behavior-preserving; no version bumps.

Gate: cargo test --workspace green (web-gen-core 10/10, no
failures), cargo check --locked clean, cargo fmt --check clean.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 05:04
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40a92aae-777e-409e-8572-5ca0c10ff574
Commits

Reviewing files that changed from the base of the PR and between 91272de and 65a32bd.

Files ignored due to path filters: 1

  • pkgs/web-gen/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 4

  • pkgs/web-gen/Cargo.toml
  • pkgs/web-gen/crates/web-gen-ui/Cargo.toml
  • pkgs/web-gen/crates/web-gen-ui/src/lib.rs
  • pkgs/web-gen/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:05:34.026321Z 65a32bd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 663cf37 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-et/8961-web-gen-ui branch November 23, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade

1 participant